﻿<%@ Control Language="C#" Inherits="Yuanlin.Business.AquacultureSection_PostEdit, Yuanlin.Business" AutoEventWireup="true" %>

<%@Register tagPrefix="ctrl" tagName="Editor" src="~/themes/default/skins/Skin-HtmlEditor.ascx" %>

    <script type="text/javascript">
    <!--
    function CheckValue()
    {
          var content = window.frames['Editor'].window.frames["HtmlEditor"].document.getElementsByTagName("BODY")[0].innerHTML;
         content = content.value.Trim();
         if(content==null||content=="")
         {
               alert('请填写回复内容！');
               return false;
         }
        return true;
    }
    //-->
    </script>
<div class="AdminArea">
    <fieldset>
        <legend><nwap:ResourceLiteral runat="server" ResourceName="System_ControlPanel_AquacultureSection_Post_EditControlTitle" ResourceFile="ControlPanelResources.xml" /></legend>
        <div class="FormRow">
            <nwap:ResourceLabel CssClass="FieldName" runat="Server" ControlToLabel="pictureAttachment1" ResourceFile="ControlPanelResources.xml" ResourceName="System_ControlPanel_AquacultureSection_Thread_Picture" />
            <asp:FileUpload onchange="CheckImage(this)" Runat="server" CssClass="InputField MiddleWidth" id="pictureAttachment1" />
        </div>
        <div class="FormRow">
            <nwap:ResourceLabel CssClass="FieldName" runat="Server" ControlToLabel="pictureAttachment2" ResourceFile="ControlPanelResources.xml" ResourceName="System_ControlPanel_AquacultureSection_Thread_Picture" />
            <asp:FileUpload onchange="CheckImage(this)" Runat="server" CssClass="InputField MiddleWidth" id="pictureAttachment2" />
        </div>
        <div class="FormRow">
            <nwap:ResourceLabel CssClass="FieldName" runat="Server" ControlToLabel="pictureAttachment3" ResourceFile="ControlPanelResources.xml" ResourceName="System_ControlPanel_AquacultureSection_Thread_Picture" />
            <asp:FileUpload onchange="CheckImage(this)" Runat="server" CssClass="InputField MiddleWidth" id="pictureAttachment3" />
        </div>
        <div class="FormRow">
            <div class="LargerFieldNameRequireCharacter">
                <nwap:ResourceLabel runat="Server" CssClass="RedColor" ResourceFile="ControlPanelResources.xml" ResourceName="RequireCharacter" />
                <nwap:ResourceLabel runat="Server" ControlToLabel="bodyEditor" ResourceFile="ControlPanelResources.xml" ResourceName="System_ControlPanel_AquacultureSection_Post_Body" />
            </div>
            <br /><br /><ctrl:Editor Runat="server" Width="100%" Height="250px" id="descriptionValuedEditor" />
        </div>
        <div class="FormRow SubmitButtonRow">
            <nwap:Resourcebutton id="saveButton" OnClientClick="return CheckValue()" ResourceName="Save" CssClass="Button" Runat="server"></nwap:Resourcebutton>
            <nwap:Resourcebutton id="backButton" ResourceName="Back" CssClass="Button" Runat="server"></nwap:Resourcebutton>
        </div>
    </fieldset>
</div>